#ifndef _TIM_H
#define _TIM_H

#include "stm32f4xx.h"

#define RGB_R  (TIM5->CCR2)
#define RGB_G  (TIM5->CCR3)
#define RGB_B  (TIM5->CCR4)
#define MOTOR  (TIM13->CCR1)
#define STEER  (TIM14->CCR1)

void timer6_delay_ms(u16 ms);
void timer6_delay_us(u16 us);
void timer7_Interrupt_ms_init(u16 ms);
void timer11_delay_ms(u16 ms);
void timer2_Interrupt_ms_init(u16 ms);
void timer3_ch1_pwm_LED3(void);
void timer5_ch234_pwm_RGB(void);
void timer13_ch1_pwm_motor(void);
void timer14_ch1_pwm_steering_engine(void);
#endif 



